package com.cmy.mvvm.test.api

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 * @name:
 *  NewsChannelsBean
 * @package:
 *  com.cmy.mvvm.test.api
 * @date:
 *  2023/2/1709:03
 * @author
 *    cmy
 * @description
 *
 */

@JsonClass(generateAdapter = true)
data class NewsChannelsBean(
    @Json(name = "channelList")
    val channelList: List<Channel>,
    @Json(name = "ret_code")
    val retCode: Int,
    @Json(name = "totalNum")
    val totalNum: Int
)

@JsonClass(generateAdapter = true)
data class Channel(
    @Json(name = "channelId")
    val channelId: String,
    @Json(name = "name")
    val name: String
)
